package com.hwang.demo1.practice;

/**
 * @ Author    :hwang
 * @ param     :int
 * @ return    :pritn
 * @ Description:输出输入数字的百十个位上的数字
 * @ Date       :2019/10/28
*/

public class calculate {
    public static void main(String[] args) {
        int x = 169;
        int a = x % 10;
        int b = x / 10 % 10;
        int c = x / 100 % 10;

        System.out.println("该变量个百十个位上的数字分别是：" + c + " " + b + " " + a);

    }
}
